﻿using CommunityToolkit.Mvvm.ComponentModel;
using Newtonsoft.Json;
using Rubyer.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StockUI.Model
{
  public  class ZsDataModel
    {
        /// <summary>
        /// 代码
        /// </summary>
      
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
      
        public string Name { get; set; }

        /// <summary>
        /// 最新价
        /// </summary>
      
        public string Close { get; set; }

        /// <summary>
        /// 涨跌额
        /// </summary>
      
        public string Change { get; set; }

        /// <summary>
        /// 涨跌幅
        /// </summary>
       
        public string ChangePercent { get; set; }

        /// <summary>
        /// 成交量
        /// </summary>
       
        public string Volume { get; set; }

        /// <summary>
        /// 成交额
        /// </summary>
    
        public string Amount { get; set; }

        /// <summary>
        /// 昨收
        /// </summary>
 
        public string PreviousClose { get; set; }

        /// <summary>
        /// 今开
        /// </summary>
    
        public string Open { get; set; }

        /// <summary>
        /// 最高
        /// </summary>
     
        public string Hign { get; set; }

        /// <summary>
        /// 最低
        /// </summary>
      
        public string Low { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
     
        public string Url { get; set; }

    }

    public class HomeTabsModel : ObservableObject
    {
        private string title = "";
        public string Title
        {
            get => title;
            set => SetProperty(ref title, value);
        }
        private string code = "";
        public string Code
        {
            get => code;
            set => SetProperty(ref code, value);
        }
        
    }
    public class HomeTabsItemModel :  ObservableObject
    {
        private string title = "";
        public string Title
        {
            get => title;
            set => SetProperty(ref title, value);
        }
        private string code = "";
        public string Code
        {
            get => code;
            set => SetProperty(ref code, value);
        }
        /// <summary>
        /// 内容
        /// </summary>

        private object content;
        public object Content
        {
            get => content;
            set => SetProperty(ref content, value);
        }
    }
}
